-- Use the Stargate addon to add LS, RD and Wire support to this entity
StarGate.LifeSupportAndWire(ENT)

include("autorun/shared/StargateExtras.lua")
include("weapon.lua")

ENT.Type             = "anim"
ENT.Base             = "base_gmodentity"

ENT.PrintName        = "Dakara Superweapon"
ENT.WireDebugName    = "Dakara Superweapon"
ENT.Author           = "PyroSpirit"
ENT.Contact		      = "forums.facepunchstudios.com"

ENT.Spawnable        = false
ENT.AdminSpawnable   = false

ENT.AutomaticFrameAdvance = true

function ENT:GetState()
   return self.Entity:GetNetworkedInt("state", self.Weapon.States.IDLE)
end

function ENT:IsCharging()
   return self:GetState() == self.Weapon.States.CHARGING
end

function ENT:IsFiring()
   return self:GetState() == self.Weapon.States.FIRING
end
